package com.wonghiu.consumer;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author wonghiu
 * @Date 2021/8/11 16:30
 * @Version 1.0.1
 */
@Configuration
@ComponentScan("com.wonghiu")
public class ConsumerMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ConsumerMain.class);
        HelloTest helloTest = (HelloTest) applicationContext.getBean("helloTest");
        helloTest.check();
    }
}
